{php $shang=\Phpcmf\Service::M()->db->table('member_setting')->where('name', shang)->get()->getRowArray();}

{php $v = dr_string2array($shang['value']);}
{php $hwu = $v['hwu'];}
{php $fufeils = $v['fufeilx'];}
{php $www = $v['www'];}
{php $ziji = $v['ziji'];}

<!--$hwu==1开，2关闭-->
<!--$fufeils==1人民币，2积分，3人民币+积分-->
{php $shangjifen=\Phpcmf\Service::M()->db->table('member_setting')->where('name', shangjifen)->get()->getRowArray();}
{php $shangjifens = dr_string2array($shangjifen['value']);}
{php $jifen = $shangjifens['jifen'];}
{php $jiage = $shangjifens['jiage'];}

{php $v = dr_string2array($shang['value']);}
{if $hwu == 1}
<div class="d-dashang d-xiala-dashang" style="display: none;">
	<div class="d-container">
		<div class="d-row">
			<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
				{if $fufeils == '1'}
				<div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10">
				<div class="d-kuan d-neikuang-10" onclick="javascript:d_dashang();"><i class="bi bi-x-circle-fill"></i></div>
				</div>
				{dr_donations($id, "打赏《".$title."》作者",0,1,son,)}
				{elseif $fufeils == '2'}
				<form action="/index.php?s={MOD_DIR}&c=shang&m=index&id={$id}" class="form-horizontal0" method="post" name="myform" id="payform">
					{dr_form_hidden()}
					<input type="hidden" name="pay[mark]" value="{$html.mark}" />
					<input type="hidden" name="pay[title]" value="{$html.title}" />
					<input type="hidden" name="pay[url]" value="{$html.url}" />
					<div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-20">
						<div class="d-kuan d-neikuang-10" onclick="javascript:d_dashang();"><i class="bi bi-x-circle-fill"></i></div>
						<div class="col-xs-3">
							<label class="mt-radio mt-radio-outline"><input type="radio" name="money2" value="{$jifen['1']}"> {$jifen['1']}  {SITE_SCORE}<span></span></label>
						</div>
						<div class="col-xs-3">
							<label class="mt-radio mt-radio-outline"><input type="radio" name="money2" value="{$jifen['1']}"> {$jifen['2']}  {SITE_SCORE}<span></span></label>
						</div>
						<div class="col-xs-3">
							<label class="mt-radio mt-radio-outline"><input type="radio" name="money2" value="{$jifen['1']}"> {$jifen['3']}  {SITE_SCORE}<span></span></label>
						</div>
					</div>
					<div class="form-body form">
										   
						   <div class="form-group">
							   <label class="col-md-12 control-label"></label>
							   
							   
						   </div>
						   
						   <div class="form-group">
							   <div class="col-md-12 control-label wenzijuzhong">账户{SITE_SCORE}</div>
							   <div class="col-md-12 wenzijuzhong">
								   <p class="form-control-static fc-price-color"> <i class="bi bi-server"></i> {$member.score} {SITE_SCORE}</p>
							   </div>
						   </div>
						   <div class="form-group">
							   
							   <div class="col-md-12">
								   <div class="wenzijuzhong">
									<div class="btn-group wenzijuzhong" >
										<a href="{$www}" style="border-radius:10px;font-size: 14px;" class="btn btn-ms btn-default "> 如何获取{SITE_SCORE}? </a>
									</div>
								   </div>
							   </div>
						   </div>
				   
						   <div class="col-md-12 fc-form-submit shang-10 xia-10">
							   <button type="submit"  class="btn btn-ms btn-danger baifen"> 确认打赏 </button>
						   </div>
										   
					</div>
				</form>
				{elseif $fufeils == '3'}
				{/if}
			</div>
		</div>
	</div>
	
</div>
{/if}

<div id="ajax_poster"></div>
<style>
	.d-xiala-dashang {
	    z-index: 999999;
	    position: fixed;
	    bottom: 0px;
	    width: 100%;
	    height: 70%;
	    overflow: auto;
	    background: #ffffff;
	    right: 0;
	    left: 0;
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(255, 255, 255, 1.0);
	}
	.mt-checkbox>span, .mt-radio>span {
	    border: 1px solid transparent;
	    position: absolute;
	    top: 5px;
	    left: 5px;
	    height: 19px;
	    width: 19px;
	    background: #E6E6E6;
	}
	
</style>
<script type="text/javascript">

	function d_dashang() {
		if ($('.d-dashang').is(':hidden')) {
			$('.d-dashang').show();
		} else {
			$('.d-dashang').hide();
		}
	}
</script>

